import request from '../utils/request';
import url from '../utils/url';


//订单列表
export function OrderList(params) {
    return request(url.orderList, {
        method: 'POST',
        params
    });
}
//订单类型
export function list(params) {
    return request(url.list, {
        method: 'POST',
        params
    });
}
//发单管理
export function sendOrder(params) {
    return request(url.sendOrder, {
        method: 'POST',
        params
    });
}
//订单取消
export function orderPublishCancel(params) {
    return request(url.orderPublishCancel, {
        method: 'POST',
        params
    });
}
//发单排序修改
export function orderPublishOrderNum(params) {
    return request(url.orderPublishOrderNum, {
        method: 'POST',
        params
    });
}

//发单审核通过
export function passAudit(params) {
    return request(url.orderPass, {
        method: 'POST',
        params,
    })

}

//派单列表数据
export function dispatchList(params) {
    return request(url.dispatchOrderList, {
        method: 'POST',
        params,
    })

}

//派单状态修改
export function changeDispatchOrderStatus(params) {
    return request(url.dispatchOrderChangeStatus, {
        method: 'POST',
        params,
    })

}
//派单排序修改
export function changeDispatchOrderNum(params) {
    return request(url.dispatchOrderOrderNum, {
        method: 'POST',
        params,
    })

}
//派单申请列表
export function dispatchOrderApplyList(params) {
    return request(url.dispatchApplyList, {
        method: 'POST',
        params,
    })

}
//派单订单取消
export function dispatchOrderCancel(params) {
    return request(url.dispatchOrderCancel, {
        method: 'POST',
        params,
    })

}
//发单单取消
export function publishOrderCancel(params) {
    return request(url.publishOrderCancel, {
        method: 'POST',
        params,
    })

}